/* Box.css */

/* 全局容器样式 */
.box-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  min-height: 100vh;
  background-color: #f8f9fa;
}

/* 顶部导航栏样式 */
.header {
  background-color: #fff;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.1);
  height: 60px;
  left: 0;
  min-width: 1240px;
  padding: 0 24px;
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 12;
}

/* 清除浮动 */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* 导航栏容器 */
.header .tag-wrap {
  height: 100%;
  margin: 0 auto;
  position: relative;
  width: 100%;
  max-width: 1240px;
}

/* 左侧导航内容 */
.header .tag-wrap .header-left {
  left: 0;
  position: absolute;
  top: 0;
}

/* Logo 样式 */
.header .tag-wrap .header-left .header-logo {
  float: left;
  font-size: 30px;
  height: 60px;
  max-width: 300px;
  min-width: 220px;
  position: relative;
}

/* Logo 链接 */
.header .tag-wrap .header-left .header-logo a {
  align-items: center;
  display: flex;
  height: 100%;
  max-width: 170px;
  min-width: 130px;
  position: absolute;
  width: 100%;
  z-index: 2;
}

/* Logo 图片默认样式 */
.header .tag-wrap .header-left .header-logo a .default {
  width: 130px;
  height: 40px;
}

/* Logo 图片通用样式 */
.header .tag-wrap .header-left .header-logo a img {
  max-width: 170px;
  max-height: 45px;
}

/* 导航菜单容器 */
.header .tag-wrap .header-left .header-tab {
  align-items: center;
  display: flex;
  float: left;
  height: 60px;
  margin-left: 30px;
}

/* 导航菜单项 */
.header .tag-wrap .header-left .header-tab .header-nav-item {
  color: #333;
  cursor: pointer;
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  padding: 0 12px;
  text-align: center;
  position: relative;
  height: 100%;
}

/* 选中状态指示器 */
.header-nav-item .select-active {
  background: #1261ff;
  border-radius: 0 0 4px 4px;
  height: 5px;
  left: 50%;
  position: absolute;
  transform: translate(-50%);
  width: 30px;
  bottom: 0;
}

/* 模板菜单项描述 */
.header-nav-item.template .temp-des {
  height: 60px;
  line-height: 60px;
  position: relative;
  text-align: left;
  width: 100%;
}

/* 导航链接样式 */
.header-nav-item a {
  color: #333;
  text-decoration: none;
}

/* 通用链接样式 */
a {
  text-decoration: none;
  cursor: pointer;
}

/* 热门标签样式 */
.header-nav-item .tip-hot {
  height: 14px;
  position: absolute;
  right: -12px;
  top: -16px;
  width: 24px;
}

/* 图片通用样式 */
img {
  border: 0;
  vertical-align: middle;
}

/* 菜单项描述 */
.header-nav-item .item-des {
  align-items: center;
  display: flex;
  height: 60px;
  line-height: 60px;
  text-align: center;
  width: 100%;
}

/* VIP角标样式 */
.header-nav-item .vip-corner {
  height: 16px;
  position: absolute;
  right: -15px;
  top: 6px;
}

/* 主要内容区域 */
.home {
  align-items: center;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  padding-top: 60px; /* 为固定导航栏留出空间 */
  min-height: calc(100vh - 60px);
}

/* 模板区域 */
.home-template {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 1px;
  position: relative;
  width: 100%;
  max-width: 1240px;
  padding: 0 24px;
}

/* 上边距 */
.home-template.m56 {
  margin-top: 40px;
}

/* 标题样式 */
.home-template .title {
  color: #111;
  font-size: 28px;
  font-weight: 700;
  height: 50px;
  line-height: 60px;
  margin: 20px 0;
  text-align: center;
  width: 100%;
}

/* 模板列表容器 */
.home-template .show-list {
  position: relative;
  width: 100%;
  min-height: 300px;
}

/* 推荐尺寸标题左对齐 */
.home-template .title.left-align {
     text-align: left;
     margin-left: 40px;
     font-size: 36px;
     font-weight: 700;
     margin-bottom: 32px;
     margin-top: 32px;
     letter-spacing: 1px;
}

/* 模板盒子 */
.home-template .box {
  padding: 40px 0 60px;
  width: 100%;
}

/* 模板列表 */
.home-template .show-list .box .template {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0;
    margin: 0 0 0 40px;
    list-style: none;
    min-width: 100%;
    width: max-content;
}

/* 自定义尺寸项 */
.home-template .show-list .box .template .custom {
  align-items: center;
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.08);
  color: #111;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 270px;
  justify-content: center;
  margin-right: 48px;
  transition: all 0.3s;
  width: 200px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* 自定义尺寸图标 */
.home-template .show-list .box .template .custom .icon.plus {
   font-size: 40px;
   font-weight: 400;
   margin-bottom: 16px;
}

/* 自定义尺寸名称 */
.home-template .show-list .box .template .custom .custom-name {
    font-size: 22px;
    font-weight: 700;
    margin-top: 0;
}

/* 模板项 */
.home-template .show-list .box .template .item {
   background: #fff;
   border-radius: 8px;
   box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.08);
   cursor: pointer;
   display: flex;
   flex-direction: column;
   height: 270px;
   justify-content: flex-start;
   text-align: center;
   transition: all 0.3s;
   width: 200px;
   margin: 0 48px 0 0;
   flex-shrink: 0;
   align-items: center;
}

/* 模板封面 */
.home-template .show-list .box .template .item .cover {
    width: 160px;
    height: 160px;
    margin: 24px auto 0 auto;
    background-color: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 模板名称 */
.home-template .show-list .box .template .item .name {
  color: #111;
  font-size: 22px;
  font-weight: 700;
  height: 32px;
  line-height: 32px;
  margin: 16px 0 0 0;
}

/* 模板尺寸 */
.home-template .show-list .box .template .item .size {
    color: #888;
    font-size: 15px;
    font-weight: 400;
    height: 22px;
    line-height: 22px;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

/* 悬停效果 */
.home-template .show-list .box .template .custom:hover,
.home-template .show-list .box .template .item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

/* 弹窗样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: #fff;
  padding: 40px 56px 32px 56px;
  border-radius: 8px;
  width: 1100px;
  max-width: 95vw;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-height: 600px;
}

.modal-header {
  margin-bottom: 32px;
  text-align: left;
}

.modal-header h2 {
  margin: 0;
  color: #111;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #222;
  z-index: 2;
}

.modal-close-btn:hover {
  color: #333;
}

.modal-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: #1261ff;
  outline: none;
}

.submit-btn {
  background-color: #1261ff;
  color: white;
  border: none;
  padding: 16px 0;
  border-radius: 6px;
  font-size: 22px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 320px;
  margin: 0 auto;
  display: block;
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 16px;
}

.submit-btn:hover {
  background-color: #0a50d0;
}

/* 自定义尺寸弹窗样式 */
.size-input-group {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.size-input-group .form-group {
  flex: 1;
}

.unit-display {
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
  margin-top: 8px;
  text-align: center;
}

.standard-size-link {
  color: #1261ff;
  text-decoration: underline;
  cursor: pointer;
  margin-bottom: 20px;
  text-align: center;
}

/* 常规尺寸选择样式 */
.standard-size-container {
  padding: 0 20px;
}

.standard-size-section {
  margin-bottom: 0;
}
.standard-size-section > .title {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin-bottom: 18px;
  margin-top: 0;
  letter-spacing: 1px;
}
.category-tabs {
  display: flex;
  border-bottom: 2px solid #e5e6eb;
  margin-bottom: 18px;
  margin-left: 2px;
}
.category-tab {
  padding: 0 24px 12px 24px;
  font-size: 20px;
  color: #222;
  cursor: pointer;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  margin-right: 8px;
}
.category-tab.active {
  color: #1261ff;
  border-bottom: 2.5px solid #1261ff;
  font-weight: 700;
}
.standard-size-list {
  display: flex;
  gap: 32px;
  flex-wrap: nowrap;
  margin-bottom: 32px;
  margin-left: 2px;
}

.standard-size-card {
  background: #f7f8fa;
  border: 2.5px solid transparent;
  border-radius: 12px;
  width: 220px;
  height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.standard-size-card.selected {
  border-color: #1261ff;
  background: #f5f8ff;
  box-shadow: 0 4px 16px 0 rgba(18,97,255,0.08);
}

.card-icon {
  margin-bottom: 18px;
}

.card-name {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
  margin-top: 0;
}

.card-size {
  color: #1261ff;
  font-size: 16px;
  font-weight: 500;
}

.card-checkmark {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  background: #1261ff;
  border-radius: 8px 0 8px 0;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* 错误提示样式 */
.error-message {
  color: red;
  font-size: 12px;
  margin-top: 4px;
}

/* 弹窗按钮样式 */
.submit-btn {
  background-color: #1261ff;
  color: white;
  border: none;
  padding: 16px 0;
  border-radius: 6px;
  font-size: 22px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 320px;
  margin: 0 auto;
  display: block;
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 16px;
}

.submit-btn:hover {
  background-color: #0a50d0;
}

.size-input-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.input-group {
  display: flex;
  flex-direction: column;
  flex: 0 0 120px;
}
.input-group label {
  font-size: 18px;
  color: #888;
  margin-bottom: 8px;
  font-weight: 500;
}
.input-group input,
.input-group select {
  width: 120px;
  height: 44px;
  font-size: 20px;
  border: 1.5px solid #e5e6eb;
  border-radius: 6px;
  padding: 0 12px;
  background: #f7f8fa;
  color: #222;
  outline: none;
  transition: border-color 0.2s;
}
.input-group input:focus,
.input-group select:focus {
  border-color: #1261ff;
}
.sync-btn {
  background: #f7f8fa;
  border: 1.5px solid #e5e6eb;
  border-radius: 6px;
  height: 44px;
  width: 44px;
  margin-top: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.sync-btn:hover {
  border-color: #1261ff;
  background: #eaf2ff;
}
.sync-icon {
  font-size: 22px;
  color: #888;
}